/*
 * $Id: BaseInfoBean.java,v 1.7 2009/08/21 19:05:42 afaichun Exp $
 * 
 * Copyright (C) 2008 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.onwatch.bean;

import java.io.Serializable;
import java.util.Date;

import com.ge.healthcare.autosc.common.util.TimeFormatStandard;
/**
 * Base class for all Onwatch request bean
 * @author 212042946
 *
 */
public abstract class BaseInfoBean implements Serializable {

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = -1278884935745113293L;
	private String requestType = null;
	private String taskId = null;
	private String systemId = null;
	private String linkSecret = null;
	private String iipVersion = null;
	private String remoteAddr = null;
	private Date startDate;
	
	public BaseInfoBean() {
		this.startDate = TimeFormatStandard.getNowMillis();
	}
	
	public String getRequestType() {
		return requestType;
	}
	public void setRequestType(String requestType) {
		this.requestType = requestType.toUpperCase();
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public void setSystemId(String systemId) {
		this.systemId = systemId;
	}
	public String getSystemId() {
		return systemId;
	}
	public void setLinkSecret(String linkSecret) {
		this.linkSecret = linkSecret;
	}
	public String getLinkSecret() {
		return linkSecret;
	}
	public String getIipVersion() {
		return iipVersion;
	}
	public void setIipVersion(String iipVersion) {
		this.iipVersion = iipVersion;
	}
	public String getRemoteAddr() {
		return remoteAddr;
	}
	public void setRemoteAddr(String remoteAddr) {
		this.remoteAddr = remoteAddr;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public String toString() {
		StringBuffer str = new StringBuffer();
		str.append("{requestType: ").append(getRequestType()).append("},");
		str.append("{taskId: ").append(getTaskId()).append("},");
		str.append("{systemId: ").append(getSystemId()).append("},");
		str.append("{iipVersion: ").append(getIipVersion()).append("},");
		str.append("{remoteAddr: ").append(getRemoteAddr()).append("},");
		str.append("{StartDate: ").append(getStartDate()).append("}");
		return str.toString();
	}
}
